﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace OPM.Models
{
    public class RoleMenu
    {
        [Key, ForeignKey("OpmRole"), Column(Order = 1)]
        public Guid RoleId { get; set; }

        [Key, ForeignKey("Menu"), Column(Order = 2)]
        public Guid MenuId { get; set; }

        public OpmRole OpmRole { get; set; }
        public Menu Menu { get; set; }
        public string Permission { get; set; }
    }
}